home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
zipfiles
/
p2z
/
segue.exe
/
NCLASS.PRG
< prev
next >
Wrap
Text File
|
1991-10-28
|
1KB
|
43 lines
*.............................................................................
*
* Program Name: NCLASS.PRG Copyright: HRF Associates, Inc.
* Date Created: 10/28/11 Language: Clipper
* Time Created: 22:03:37 Author: Bob Fogle
*
*.............................................................................
* Supplemental SEGUE function for specifiying document print class (form number).
* Functionally equivilent to N_CLASS function in NETLIB library except it provides
* for 255 classes (forms) instead of 99.
*
FUNCTION NCLASS_
*Purpose : To specify banner page text.
*Usage : NCLASS_([<expN1>])
* :
* Where : <expN1> = Class (form) number. [0..255]
* :
* :
PARAMETERS class
LOCAL mclass
PRIVATE rtn :=0
do while .t.
* Check to make sure passed variable types are correct.
if valtype(class)<>'N' .AND. class<>nil
rtn = -101
exit
endi
* Set up defaults
mclass = if(valtype(class)=='N',class,0)
* Get/Set Class (form) number
if pcount()=0 // If no arguments, return current setting.
rtn = PRJBDFG(6) // Get Default Print Job Flags (Form Type)
else
rtn = PRJBDFS(,,,,,mclass) // Set Default Print Job Flags (Form Type)
endi
exit
endd
RETURN rtn